package com.itheima.tlias84.mapper;

import com.itheima.tlias84.dto.SelectLogDTO;
import com.itheima.tlias84.entity.OperateLog;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 日志列表mapper
 */
@Mapper
public interface LogMapper {

    int insertLog(@Param("log") OperateLog logEntity);

    List<SelectLogDTO> selectLogAll(@Param("page")Integer page, @Param("pageSize")Integer pageSize);

}
